package com.omuao.cloud.stabilization.common.message.annotation;

import com.omuao.cloud.stabilization.common.message.core.config.MessageQueueInitializationPostProcessor;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 开启消息队列处理
 *
 * @author yumi
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
@Import({MessageQueueInitializationPostProcessor.class})
@EnableBinding
@SpringBootApplication
public @interface EnableMessageQueueApplication {
}
